<?php defined('MYLITS') ? '' : exit('No direct script access allowed'); ?>
<a class="btn popup" href="<?= $urlAdd ?>" class="btn" type="button"><?= Mylits_Language::getText('add'); ?></a>
<div class="row">
    <div class="col-sm-6">
        <table style="margin-top: 10px">
            <thead>
                <tr>
                    <th><?= Mylits_Language::getText('number'); ?></th>
                    <th><?= Mylits_Language::getText('name'); ?></th>
                    <th><?= Mylits_Language::getText('username'); ?></th>
                    <th><?= Mylits_Language::getText('action'); ?></th>
                </tr>
            </thead>
            <tbody>
                <?php if (isset($users) && !empty($users)): ?>
                    <?php $no = 1; ?>
                    <?php foreach ($users as $user): ?>
                        <tr>
                            <td><?= $no ?></td>
                            <td><?= $user['name'] ?></td>
                            <td><?= $user['username'] ?></td>
                            <td class="action">
                                <a class="popup" href="<?= $urlEdit . '/' . Mylits_Security::encrypt($user['id']) ?>"><span class="glyphicon glyphicon-edit"></span></a>
                                <a class="glyphicon glyphicon-search"></a>
                                <a class="confirm ajax target-main-component" href="<?= $urlDell . '/' . Mylits_Security::encrypt($user['id']) ?>"><span class="glyphicon glyphicon-remove"></span></a>
                            </td>
                        </tr>
                        <?php $no++ ?>
                    <?php endforeach; ?>
                <?php endif; ?>
            </tbody>
        </table>
    </div>
    <div class="col-sm-6">

    </div>
</div>